package com.example.WebSocketDemo.mapper;

import com.example.WebSocketDemo.bean.RecentMessage;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RecentMessageMapper {
    List<RecentMessage> getRecentMessageByUserName(String username);

    void updateRecentMessage(String message,String from,String to);

    void updateUnreadMessageCount (String from,String to);
}
